<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation"  style="background: url(image/bg_top.jpg);">
 <div class="collapse navbar-collapse collapseToCenter"  >
        <ul class="nav navbar-nav">
       		<li><a  href="#" style="font-size: 20px;color: white;">松江大学城</a></li>
       		 <li><a  href="#" style="font-size: 20px;color:rgb(0, 255, 204);">最专业的大学生兼职实习门户！</a></li>
        </ul>
        <ul class="nav navbar-nav navbar-right" id="main-menu">
            <li> <a ><span>欢迎您 </span>tomey</a></li>
            <li><a  cmd href="http://www.baidu.com">短消息</a></li>
            <li><a  cmd href="index.html">网站首页</a></li>
            <li><a  cmd href="#">退出</a></li>
        </ul>
   </div>
</nav>
<script type="text/javascript">
   $('a[cmd]').hover(function(){
            $(this).addClass('hover');
        },function(){
            $(this).removeClass('hover');
        });
        $('a span[cmd]').hover(function(){
            $(this).css({'background':'#d2322d','color':'#FFEEEE','cursor':'pointer'});
        },function(){
            $(this).css({'background':'transparent','color':'white'});
        });
        $('a span[cmd]').bind('click',function(){
            var cmd= $(this).attr('cmd');
            if('login'==cmd){
                window.location.href="student/login";
            }else if('register'==cmd){
                 window.location.href="student/register";
            }else if('company'==cmd){
                 window.location.href="company/login";
            }
        });
</script>
